import request from '@/utils/request'

// 近七日火警/点位数量
export function fireAlarm(data) {
  return request({
    url: 'v1/visualizations/fire-alarm',
    method: 'get'
  })
}

// 评分
export function scoreControl(data) {
  return request({
    url: 'v1/visualizations/score',
    method: 'get'
  })
}

// 单位信息
export function corpInfo(data) {
  return request({
    url: 'v1/visualizations/corp-info',
    method: 'get'
  })
}

// 巡更时
export function patrol(data) {
  return request({
    url: 'v1/visualizations/patrol',
    method: 'get'
  })
}
// 天气
export function weather(data) {
  return request({
    url: 'v1/visualizations/weather',
    method: 'get'
  })
}

// 分数排序
export function sortScore(data) {
  return request({
    url: 'v1/visualizations/sort-score',
    method: 'get'
  })
}

// 综合评分
export function colligationScore(data) {
  return request({
    url: 'v1/visualizations/colligation-score',
    method: 'get'
  })
}

// 设备联网率
export function iot(data) {
  return request({
    url: 'v1/visualizations/iot',
    method: 'get'
  })
}

// 今日异常
export function todayAbnormal(data) {
  return request({
    url: 'v1/visualizations/today-abnormal',
    method: 'get'
  })
}

// 隐患排行
export function hiddenScore(data) {
  return request({
    url: 'v1/visualizations/hidden-score',
    method: 'get'
  })
}

// 建筑列表-地图标注点
export function buildingList(data) {
  return request({
    url: 'v1/visualizations/building-list',
    method: 'get'
  })
}

// 物联网系统接入情况
export function accessInfo(data) {
  return request({
    url: 'v1/visualizations/access-info',
    method: 'get'
  })
}

// 物联网设备运行情况
export function runStatus(data) {
  return request({
    url: 'v1/visualizations/run-status',
    method: 'get'
  })
}
